
package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @create 2020-12-07 19:57
 */
@Mapper
public interface PaymentDao {
    //写
    public int create(Payment payment);

    //读，@Param用于传递参数，从而可以与SQL中的的字段名相对应，一般在2=<参数数<=5时使用最佳
    public Payment getPaymentByid(@Param("id") Long id);
}